-
Notifications
You must be signed in to change notification settings - Fork 640
🐛 Fix constant re-applying of tags if AWSMachine.metadata.annotations is nil
#5775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
fiunchinho
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
LGTM label has been added. Git tree hash: e8454eefd3a81972f9492c2c22eca133a0aef064
|
|
/test pull-cluster-api-provider-aws-e2e |
|
@AndiDog I suggest you to rebase on top of the most recent main. A couple of PRs to fix E2E flakes have recently merged so there is a higher chance for the presubmit to pass on this one too. TY |
damdo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
f122d7c to
a203e17
Compare
|
Rebased onto latest E2E test fixes without any changes /test pull-cluster-api-provider-aws-e2e |
|
New changes are detected. LGTM label has been removed. |
|
Another flake maybe? /test pull-cluster-api-provider-aws-e2e |
What type of PR is this?
/kind bug
What this PR does / why we need it:
CAPA would constantly call
CreateTagson instances and volumes because it didn't actually write the "these are the tags I've set" annotation back to theAWSMachineobject. The code didn't do anything if the annotations map is nil. This probably only applies to AWSMachinePool machines – they currently get created without any annotations. OtherAWSMachineobjects normally have annotations likecluster.x-k8s.io/cloned-from-groupkind: AWSMachineTemplate.infrastructure.cluster.x-k8s.ioand therefore, I believe, weren't affected.We detected this issue from very verbose logs and a high rate of AWS requests.
Checklist:
Release note: